package com.container.app;

import com.cache.app.Cacheable;
import com.container.app.utilities.Pair;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 7/17/12
 * Time: 5:32 PM
 */
public final class CacheableMapping implements Cacheable<Integer> {
    private Pair<Pair<Class, Pair<Class, String>>, Object> mapping;

    CacheableMapping(Pair<Pair<Class, Pair<Class, String>>, Object> mapping) {
        this.mapping = mapping;
    }

    Object getMapping() {
        return mapping.getSecond();
    }

    public boolean isOutOfDate() {
        return false;
    }

    public Integer getKey() {
        return mapping.getFirst().hashCode();
    }
}
